package com.woniuxy.certified.model.form;

import com.alipay.api.domain.MemberWalletBalanceDetailVO;
import com.woniuxy.core.annotation.DoubleValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.runtime.regexp.joni.Regex;
import lombok.Data;
import lombok.NonNull;
import org.checkerframework.common.value.qual.DoubleVal;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

@Data
@ApiModel(description = "申请成为物业")
public class ApplicationsForm {

    @ApiModelProperty(value = "物业名")
    @NotNull(message = "物业名不能为空")
    private String certifiedInfoName;

    @ApiModelProperty(value ="物业电话")
    @NotNull(message = "物业电话不能为空")
    @Size(max = 11,min = 11,message = "手机号必须是11位")
    private String certifiedInfoTel;

    @ApiModelProperty(value ="营业执照")
    @NotNull(message = "营业执照不能为空")
    private String certifiedInfoImg;

    @ApiModelProperty(value ="创建时间")
    @NotNull(message = "创建时间不能为空")
    private String certifiedInfoAddTime;

    @ApiModelProperty(value ="创建人")
    @NotNull(message = "创始人不能为空")
    private String certifiedInfoAddPerson;

    @ApiModelProperty(value ="物业地址")
    @NotNull(message = "物业地址不能为空")
    private String certifiedInfoAddress;

    @ApiModelProperty(value ="经度")
    @NotNull(message = "经度不能为空")
//    @Pattern(regexp = "^[0-9]+(.[0-9]{2})?$" , message = ("经纬度必须为double类型"))
//    @DoubleValue
    private Double certifiedInfoLatitude;

    @ApiModelProperty(value ="纬度")
//    @Pattern(regexp = "^[0-9]+(.[0-9]{2})?$",message = ("经纬度必须为double类型"))
    @NotNull(message = "纬度不能为空")
//    @DoubleValue
    private Double certifiedInfoLongitude;

}
